package controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/home")
public class MainController {

    private int visitorCount = 0;

    @RequestMapping(value = "/list", method = RequestMethod.GET)
    protected String printWelcome(ModelMap model)   {
        String message = "YEP!";
        model.addAttribute("message", "Spring 3 MVC Hello World");
        return "index";
    }

}


